#include"Systick.h"
#include"led.h"
void systick_init(void)
{
    SysTick->LOAD =72000-1;//1ms一次中断

    SysTick->CTRL|=SysTick_CTRL_CLKSOURCE;//时钟源
    SysTick->CTRL|=SysTick_CTRL_TICKINT;//时钟中断
    SysTick->CTRL|=SysTick_CTRL_ENABLE;//使能

}


uint16_t count=0;
void SysTick_Handler(void)
{
    count++;
    if(count==1000)
    {
        led_tegger(LED1);
        count=0;
    }
}